<!DOCTYPE html>
<html>
<#include "../head.html">
    <body class="full">
    <table class="mc">
        <tr>
            <td class="mc-l">
                <!--左侧导航---{-->
                <div id="navPanelContainer">
                    <div class="system-logo cd"></div>
                    <!--管理员信息---{-->
                    <#include "../adminInfo.html">
                        <!--管理员信息---}-->
                        <div class="nav-wrap">
                            <#include "left.html">
                        </div>
                </div>
                <!--左侧导航---}-->
            </td>
            <td class="mc-m">
                <div class="navToggle"></div>
            </td>
            <td class="mc-r">
                <!--顶部导航---{-->
                <#include "../topNav.html">
                    <!--顶部导航---}-->

                    <!--面包屑导航---{-->
                    <#assign moduleName="回款详情">
                        <#include "banner.html">
                            <!--面包屑导航---}-->

                            <!--工具栏--{-->
                            <div id="toolbar" class="clearfix">

							    
							     <div class="toolbor-module search">
					                  <div class="formTit">还款状态：</div>
					                   <div class="select-box" id="status">
					                        <div class="tag-select">全部</div>
					                        <ul class="tag-options">
					                           <li data-value="">全  部</li>
					                           <li data-value="0">未还款</li>
					                           <li data-value="1">已还款</li>
					                        </ul>
					                    </div>
					            </div>
                
								<div class="toolbor-module search">
                                <div class="formTit">项目名称：</div>
                                    <input type="text" name="borrowName" id="borrowName" value="请输入项目名称" class="search-value">
                                    
                                <div class="formTit">用户名：</div>
                                    <input type="text" name="username" id="username" value="请输入用户名" class="search-value">
                                </div>
							    
							     <div class="toolbor-module">
							        <input type="button" class="input-button return" value="返回" onclick="history.go(-1)">
							    </div>
                                <div class="toolbor-module search">
                                    <input type="button" value="搜索"  class="input-button" onclick="sousuo();">
                                </div>                                
                                
                            </div>
                            <!--工具栏--}-->

                            <div id="main" class="clearfix">
                                <form action="" method="post">
                                    <table class="data-list">
                                        <tr class="header">
                                            <td>借款id</td>
                                            <td>借款人用户名</td>
                                            <td>借款人真实姓名</td>
                                            <td>项目名称</td>
                                            <td>资产管理公司名称</td>
                                            <td>项目金额</td>
                                            <td>项目年化利率</td>
                                            <td>借款期限</td>
                                            <td>借款时间</td>
                                            <td>已还款金额</td>
                                            <td>未还款金额</td>
                                            <td>还款至银行卡</td>
                                            <td>还款至投资准备金</td>
                                            <td>还款状态</td>
                                            <td>预计还款时间</td>
                                            <td>实际还款时间</td>
                                        </tr>
                                            <#list list as item>
                                                <tr class="s">
                                                    <td>${item.borrowId?c}</td>
		                                            <td>${item.userName}</td>
		                                            <td>${item.realName}</td>
		                                            <td>${item.borrowName}</td>
		                                            <td>${item.franchiseeName}</td>
		                                            <td>${item.account?c}元</td>
		                                            <td>${item.apr}%</td>
		                                            <td>${item.timeLimit}</td>
		                                            <td><#if item.publishDate??>${item.publishDate}</#if></td>
		                                            <td>${item.hasRepaidMoney?c}元</td>
		                                            <td>${item.repayMoney?c}元</td>
		                                            <td>${item.repayBackCard?c}元</td>
		                                            <td>${item.repayBackBalance?c}元</td>
		                                            <td><#if item.status==1>已还款<#else>未还款</#if></td>
		                                            <td><#if item.repayDate??>${item.repayDate}</#if></td>
		                                            <td><#if item.repayyesDate??>${item.repayyesDate}</#if></td>                 
                                                </tr>
                                            </#list>

                                    </table>
                                </form>

                                <!--底部工具栏--{-->
                                <div id="bottomToolbar" class="clearfix">
                                    <div class="other-tool">
                                        <dl class="refresh-data">
                                            <dt class="refresh-data-icon"></dt>
                                            <dd><a href="javascript:void(0);" class="refresh-page">刷新数据</a></dd>
                                        </dl>
                                    </div>

                                    <!--翻页系统--{-->
                                    <div class="container s_formPage">
                                        <#import "../../common/page.html" as pager>
                                            <@pager.pagination page=page url="${pageUrl}" map=param style="style1" />
                                    </div>
                                    <!--翻页系统--}-->
                                </div>
                                <!--底部工具栏--}-->

                                <script>
                                    var url = 'searchRepDetail.html?search=true';
                                    function sousuo(){
                                    	/[?|&]searchtime=([a-zA-Z0-9_-]+)/g.test(window.location);
                                    	 var sou = ""; 
                                    	 // 获取前面传过来的时间
                                    	 sou+="&searchtime="+RegExp.$1;
                                         var borrowName = $("#borrowName").val();
                                         if (borrowName!=""&&borrowName!="请输入项目名称"){
                                             sou += "&borrowName="+borrowName;
                                         }
                                         var username = $("#username").val();
                                         if (username!=""&&username!="请输入用户名"){
                                             sou += "&username="+username;
                                         }
                                         
                                         var status = $("#status").find(".open-selected").attr("data-value");
                                         if(status!=null&&status!=""&&status!="undefine"){
                                         	sou += "&status="+status;
                                         }
                                         
                                         if (sou!=""){
                                             location.href=url+sou;
                                         }
                                    }
                                </script>
                            </div>

            </td>
        </tr>
        <tr>
            <!--尾部--{-->
            <td colspan="3" class="mc-b"><#include "../foot.html"></td>
            <!--尾部--}-->
        </tr>
    </table>

    </body>
</html>
<#include "../jsPage.html">
